from flask_restful import fields

user_fields = {
    'uid': fields.Integer,
    'uname': fields.String,
    'gender': fields.Integer,
    'profile_photo': fields.String,
    'created_time': fields.DateTime,
    'account': fields.String
}


Relation_fields = {
    'user_id': fields.Integer,
    'foller_id': fields.Integer,
    'relation': fields.Integer,
    'create_time': fields.DateTime,
    'update_time': fields.DateTime
}


channel_fields = {
    'cid': fields.Integer,
    'cname':fields.String,
    'sequence': fields.Integer,
    'ctime': fields.DateTime
}

news_fields = {
    'user_id':fields.Integer,
    'nid':fields.Integer,
    'title':fields.String,
    'cover':fields.String,
    'content':fields.String,
    'comment_count': fields.Integer,
    'good_count': fields.Integer,
    'ctime':fields.DateTime,
    'is_follow': fields.Boolean,
    'is_like':fields.Boolean,
    'is_collection': fields.Boolean
}

